# -*- coding: utf-8 -*-
# @Author : HaleShi
# @Time : 2023-07-04
# @File : 3_recognition_img.py

import ddddocr

f = open("v2.png", mode='rb')
img_bytes = f.read()

ocr = ddddocr.DdddOcr(show_ad=False)
code = ocr.classification(img_bytes)
print(code)

f.close()
